package S05;

public class N03 {
	//9.1.4 通过函数参数引用子类的对象
	public static void show(Person p) {
		System.out.println(p.whoami());
	}
	public static void main(String[] args) {
		show(new Person("张三", 20));
		show(new Student("李四", 19, "水环学院"));
		show(new Monitor("王五", 21, "水环学院"));
	}

}
